package ups.glre.news.service;

import java.util.List;

import javax.ejb.Local;

import ups.glre.news.model.User;

@Local
public interface UserService {
	public void createUser(String firstName, String lastName, String login, String password);
	public boolean authenticate(String login, String password);
	public User getUserByLogin(String login);
	public void populateUserTables();
	public void subscribeUserToCategory(int userId, int categoryId);
	public User subscribeUserToCategory(int userId, List<Integer> categoriesId);
	public void unSubscribeUserFromCategory(int userId, int categoryId);	
	public User unSubscribeUserFromCategory(int userId, List<Integer> categoriesId);
	
}
